<template>
    <div class="inbox-wrapper">
        <el-table :data="tableData" stripe style="width: 100%">
            <el-table-column align="center" label="标题" width="550">
                <template slot-scope="scope">
                    <a class="detail link-line text-elli" @click="detail(scope.row.title)">{{scope.row.title}}</a>
                </template>
            </el-table-column>
            <el-table-column align="center" prop="file" label="附件" width="200"></el-table-column>
            <el-table-column align="center" prop="datetime" label="发件时间" width="170"></el-table-column>
            <el-table-column align="center" prop="sendPerson" label="发件人" width="145"></el-table-column>
            
                <!-- <template slot-scope="scope">
                    <el-button type='text' @click='shareUrl(scope.row.contentUrl)'>
                        <i class="fa fa-share"></i>
                    </el-button>
                </template>                 -->
            
        </el-table>
    </div>
</template>

<script>
export default {
    name: 'inbox',
    data: function() {	
        return {
            tableData:[{
                title:"收件箱",
                datetime:"2017-11-05 08:00",
                file:"chrome.dll",
                sendPerson:"潘清明"
            },{
                title:"收件箱",
                datetime:"2017-11-05 08:00",
                file:"chrome.dll",
                sendPerson:"潘清明"
            },{
                title:"收件箱",
                datetime:"2017-11-05 08:00",
                file:"chrome.dll",
                sendPerson:"潘清明"
            },{
                title:"收件箱",
                datetime:"2017-11-05 08:00",
                file:"chrome.dll",
                sendPerson:"潘清明"
            }]
        }
    },
    methods: {
        detail(val) {
            this.$emit('inbox-detail', val)
        }
    }
}
</script>

<style lang="scss">
.inbox-wrapper{
    .detail{
        cursor: pointer;
    }
}
</style>